home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / cp-80j.zip / WWWVIRT.BA_ < prev    next >
Text File  |  1992-06-12  |  1KB  |  28 lines

  1. ECHO OFF
  2. REM This batch file is provided as a means to change the PATH
  3. REM statement when running DOS applications.  Using a single
  4. REM generic batch file like this allows you to avoid having
  5. REM scads of little batch files littering the disk.
  6. REM
  7. REM This BAT file has 2 required and up to 7 optional parameters.
  8. REM    First  Param   Path you wish to use.          (Required)
  9. REM    Second Param   Program you wish to run.       (Required)
  10. REM    3--9   Params  Additional Optional Parameters (Optional).
  11. REM
  12. REM Example:
  13. REM To run Microsoft Word (DOS Version)  WORD.COM
  14. REM using the currently selected file...
  15. REM With a different path   C:\WORD;C:\UTILS
  16. REM In the C:\WORD\DOCUMENT directory...
  17. REM Use the following statements in a Command Post menu item.
  18. REM
  19. REM &Appls
  20. REM  &Microsoft Word (DOS)
  21. REM         a=strcat(DirGet(),CurrentFile())
  22. REM         DirChange("C:\WORD\DOCUMENT")
  23. REM         Run("CP_VIRT.BAT","C:\WORD;C:\UTILS  WORD.COM %a%")
  24. REM
  25. SET PATH=%1
  26. %2 %3 %4 %5 %6 %7 %8 %9
  27. EXIT
  28.